@keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  @keyframes slideIn {
    from {
      transform: translateY(-20px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
  
  @keyframes glowPulse {
    0% {
      box-shadow: 0 0 5px rgba(75, 88, 220, 0.2);
    }
    50% {
      box-shadow: 0 0 20px rgba(75, 88, 220, 0.4);
    }
    100% {
      box-shadow: 0 0 5px rgba(75, 88, 220, 0.2);
    }
  }
  
  @keyframes borderGradient {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }
  
  @keyframes rotate {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }
  
  .cool-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
  }
  
  .cool-dialog-wrapper {
    position: relative;
    max-width: 90%;
    width: 500px;
    animation: slideIn 0.4s ease;
  }
  
  .cool-dialog {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 30px rgba(75, 88, 220, 0.2);
    overflow: hidden;
    position: relative;
    transform: translateZ(0);
  
    &:before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: linear-gradient(90deg, #4b58dc, #7b86ff, #4b58dc);
      background-size: 200% 200%;
      animation: borderGradient 3s ease infinite;
    }
  
    .cool-dialog-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 20px 25px;
      border-bottom: 1px solid rgba(75, 88, 220, 0.1);
      background: linear-gradient(
        135deg,
        rgba(75, 88, 220, 0.05),
        rgba(123, 134, 255, 0.1)
      );
      .cool-dialog-title {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
        background: linear-gradient(90deg, #4b58dc, #7b86ff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        position: relative;
        display: flex;
        align-items: center;
        .iconfont {
            font-size: 20px;
            margin-right: 10px;
        }
      }
      .warning{
        margin: 0;
        font-size: 18px;
        font-weight: 600;
        background: linear-gradient(90deg, #4b58dc, #7b86ff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        position: relative;
        display: flex;
        align-items: center;
      }
      .info{
        background: linear-gradient(90deg, #cdcfd5, #919398);
      }
      .success{
        margin: 0;
        font-size: 18px;
        font-weight: 600;
        background: linear-gradient(90deg, #94dd60, #7ec050);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        position: relative;
        display: flex;
        align-items: center;
      }
      .error{ 
        margin: 0;
        font-size: 18px;
        font-weight: 600;
        background: linear-gradient(90deg, #e47470, #e47470);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        position: relative;
        display: flex;
        align-items: center;
      }
  
      .cool-dialog-close {
        border: none;
        background: transparent;
        font-size: 20px;
        cursor: pointer;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #a9acb2;
        transition: all 0.3s ease;
  
        &:hover {
          background: rgba(75, 88, 220, 0.1);
          color: #4b58dc;
          transform: rotate(90deg);
        }
      }
    }
  
    .cool-dialog-body {
      padding: 25px;
      overflow-y: auto;
      // text-align: center;
      font-size: 15px;
  
      &::-webkit-scrollbar {
        width: 6px;
      }

      &::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 3px;
      }
  
      &::-webkit-scrollbar-thumb {
        background: linear-gradient(to bottom, #4b58dc, #7b86ff);
        border-radius: 3px;
      }
    }

    .cool-confirm-content{
      text-align: center;
    }
    .cool-dialog-footer {
      display: flex;
      justify-content: flex-end;
      padding: 16px 25px;
      border-top: 1px solid rgba(75, 88, 220, 0.1);
      background: linear-gradient(
        135deg,
        rgba(75, 88, 220, 0.05),
        rgba(123, 134, 255, 0.1)
      );
  
      .cool-button {
        min-width: 90px;
        height: 38px;
        border: none;
        border-radius: 38px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 14px;
        position: relative;
        overflow: hidden;
  
        &:before {
          content: "";
          position: absolute;
          top: 0;
          left: -100%;
          width: 100%;
          height: 100%;
          background: linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent
          );
          transition: all 0.5s ease;
        }
  
        &:hover {
          transform: translateY(-2px);
  
          &:before {
            left: 100%;
          }
        }
  
        &:active {
          transform: translateY(1px);
        }
      }
  
      .cool-button-cancel {
        background: rgba(0, 0, 0, 0.06);
        color: #606266;
        margin-right: 12px;
  
        &:hover {
          background: rgba(0, 0, 0, 0.12);
        }
      }
  
      .cool-button-confirm {
        background: linear-gradient(135deg, #4b58dc, #7b86ff);
        color: white;
        box-shadow: 0 4px 12px rgba(75, 88, 220, 0.2);
  
        &:hover {
          box-shadow: 0 6px 16px rgba(75, 88, 220, 0.3);
        }
      }
    }
  
    .cool-dialog-decoration {
      position: absolute;
      width: 60px;
      height: 60px;
      border-radius: 50%;
      pointer-events: none;
      opacity: 0.5;
      z-index: -1;
  
      &.top-left {
        top: -20px;
        left: -20px;
        background: radial-gradient(circle, #4b58dc 0%, transparent 70%);
        animation: glowPulse 4s infinite, rotate 10s linear infinite;
      }
  
      &.top-right {
        top: -15px;
        right: -15px;
        background: radial-gradient(circle, #7b86ff 0%, transparent 70%);
        animation: glowPulse 4s infinite 1s, rotate 12s linear infinite reverse;
      }
  
      &.bottom-left {
        bottom: -20px;
        left: -20px;
        background: radial-gradient(circle, #7b86ff 0%, transparent 70%);
        animation: glowPulse 4s infinite 2s, rotate 15s linear infinite;
      }
  
      &.bottom-right {
        bottom: -15px;
        right: -15px;
        background: radial-gradient(circle, #4b58dc 0%, transparent 70%);
        animation: glowPulse 4s infinite 3s, rotate 10s linear infinite reverse;
      }
    }
  }
  
  .is-visible {
    animation: slideIn 0.4s ease;
  }